package cn.itcast.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * DAO层，是直接操作数据库
 */
@Mapper
public interface QuotMapper {

    List<Map<String,Object>> externalQuery();

    List<Map<String,Object>> dklineQuery(@Param("code") String code);

    Map<String,Object> stockDesc(String code);


    List<Map<String, Object>> queryKline(@Param("tableName")String tableName, @Param("firstTxDate")String firstTxDate, @Param("tradeDate")String tradeDate);

    Map<String, Object> queryTccDate();

    void updateKline(@Param("tableName")String tableName, @Param("firstTxDate")String firstTxDate, @Param("tradeDate")String tradeDate);
}
